const bcrypt = require('bcryptjs')
const { sequelize } = require('../../../core/db');
const { Sequelize, Model } = require('sequelize');
const { NotFound, AuthFailed } = require('../../../core/httpException');

// 商品规格表
class Article extends Model {

}

Article.init({
    id: {
        type: Sequelize.INTEGER,
        primaryKey: true,
        autoIncrement: true
    },
    class_id: {
        type: Sequelize.INTEGER
    },
    name: {
        type: Sequelize.TEXT
    },
    content: Sequelize.TEXT,
    tags: Sequelize.TEXT

}, {
    sequelize,
    tableName: 'article'
})

module.exports = { Article }
